﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostureData.aspx.cs" Inherits="AlbonWeb.Manager.ClientManager.PostureData" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Posture Picture</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Manager>>Client Manager</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="content_title">
                <td colspan="3" align="center">
                    Posture Picture
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_left">
                    Posture Name:
                </td>
                <td class="td_right">
                    <asp:TextBox ID="postureName" runat="server"></asp:TextBox>
                </td>
                <td></td>
            </tr>
            <tr class="data_darkcolor">
                <td class="td_left">
                    Parent:
                </td>
                <td class="td_right">
                    <asp:DropDownList ID="ddlParent" runat="server">
                    </asp:DropDownList>
                </td>
                <td></td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_left">
                    Select Picture:
                </td>
                <td class="td_right">
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="300px" />
                    <asp:HiddenField ID="hffilepath" runat="server" />
                </td>
                <td></td>
            </tr>
            <tr class="data_darkcolor">
                <td class="td_left">
                Remark:
                </td>
                <td align="left">
                    <asp:TextBox ID="remark" runat="server" TextMode="MultiLine" Width="70%"  Height="100px"></asp:TextBox>
                </td>
                <td align="left">
                <img id="uploadImage" alt=""  style="width: 70px; height: 100px;"/>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_left">
                </td>
                <td class="td_right">
                    <asp:Button ID="PostureData_btnAdd" runat="server" Text="Submit" OnClick="btnAdd_Click" />
                </td>
                <td></td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="3" align="center">
                    <table width="80%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                        class="tb_list">
                        <asp:Repeater ID="repMain" runat="server">
                            <HeaderTemplate>
                                <tr class="tr_list_head">
                                    <td>
                                        Posture Name
                                    </td>
                                    <td>
                                        Image Path
                                    </td>
                                    <td>
                                        Parent
                                    </td>
                                    <td>
                                        CreateDate
                                    </td>
                                    <td>
                                        Edit
                                    </td>
                                    <td>
                                        Delete
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_list_content">
                                    <td>
                                        <%#Eval("postureName") %>
                                    </td>
                                    <td>
                                        <%#Eval("imgPath") %>
                                    </td>
                                    <td>
                                        <%#Eval("parentName")%>
                                    </td>
                                    <td>
                                        <%#Eval("createDate") %>
                                    </td>
                                    <td>
                                       <a href='PostureData.aspx?id=<%# Eval("ID")%>'><img src="/images/grv_edit.gif" alt="" /></a> 
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="imgDelete" runat="server" ImageUrl="/images/grv_delete.gif" CommandArgument='<%#Eval("ID")%>' OnClick="imgDelete_Click"
                                         OnClientClick='return confirm("Are you sure to DELETE this record?")' />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    &nbsp;
                </td>
                <td align="right">
                </td>
                <td></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
